<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新增的全局常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="migration71.new-functions.html">« 新的函数</a></li>
      <li style="float: right;"><a href="migration71.incompatible.html">不向后兼容的变更 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="migration71.html">从 PHP 7.0.x 移植到 PHP 7.1.x</a></li>
    <li>新增的全局常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="migration71.constants" class="sect1">
 <h2 class="title">新增的全局常量</h2>

 <div class="sect2" id="migration71.constants.core">
  <h3 class="title"><a href="reserved.constants.html" class="link">PHP 核心中预定义的常量</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_FD_SETSIZE</code></strong>
    </span>
   </li>
  </ul>
 </div>
 
 <div class="sect2" id="migration71.constants.curl">
  <h3 class="title"><a href="book.curl.html" class="link">CURL</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLMOPT_PUSHFUNCTION</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURL_PUSH_OK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURL_PUSH_DENY</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.constants.filter">
  <h3 class="title"><a href="book.filter.html" class="link">Data Filtering</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>FILTER_FLAG_EMAIL_UNICODE</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.constants.image">
  <h3 class="title"><a href="book.image.html" class="link">Image Processing and GD</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>IMAGETYPE_WEBP</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.constants.json">
  <h3 class="title"><a href="book.json.html" class="link">JSON</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_UNESCAPED_LINE_TERMINATORS</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.constants.ldap">
  <h3 class="title"><a href="book.ldap.html" class="link">LDAP</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_SASL_NOCANON</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_SASL_USERNAME</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CACERTDIR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CACERTFILE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CERTFILE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CIPHER_SUITE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_KEYFILE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_RANDOM_FILE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CRLCHECK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CRL_NONE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CRL_PEER</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CRL_ALL</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_DHFILE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_CRLFILE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_PROTOCOL_MIN</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_PROTOCOL_SSL2</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_PROTOCOL_SSL3</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_PROTOCOL_TLS1_0</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_PROTOCOL_TLS1_1</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_PROTOCOL_TLS1_2</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_TLS_PACKAGE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_KEEPALIVE_IDLE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_KEEPALIVE_PROBES</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_X_KEEPALIVE_INTERVAL</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.constants.pgsql">
  <h3 class="title"><a href="book.pgsql.html" class="link">PostgreSQL</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>PGSQL_NOTICE_LAST</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PGSQL_NOTICE_ALL</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PGSQL_NOTICE_CLEAR</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.constants.spl">
  <h3 class="title"><a href="book.spl.html" class="link">SPL</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>MT_RAND_PHP</code></strong>
    </span>
   </li>
  </ul>
 </div>
</div></div></div></body></html>